openvpn over ipv6 support -v0.4.6
PATCH 1/1 openvpn over ipv6 support -v0.4.6
Hi,
I'm(back) working on openvpn/ipv6 endpoint support, aka udp6/tcp6, please refer to README.ipv6[1] and TODO.ipv6[2] for more details.
All snapshots are unittested for correct {udp,tcp}v{4,6} operation under GNU/Linux and win32 (the latter x-compiled under the former ;).
You can find my current git repo[3], available under GPLv2, plus patches and complete tarballs in downloads/ area.
Enjoy! ... and please send feedback :)
[1] http://github.com/jjo/openvpn-ipv6/blob/master/README.ipv6
[2] http://github.com/jjo/openvpn-ipv6/blob/master/TODO.ipv6
[3] http://github.com/jjo/openvpn-ipv6
Cheers,
--
--JuanJo ; echo [email protected]... | sed 's/[SPAM]//g'
JuanJo Ciarlante <[email protected]...> wrote:
Hello JuanJo,
Quoted 5 lines
I'm(back) working on openvpn/ipv6 endpoint support, aka udp6/tcp6, please refer to README.ipv6[1] and TODO.ipv6[2] for more details.
All snapshots are unittested for correct {udp,tcp}v{4,6} operation under GNU/Linux and win32 (the latter x-compiled under the former ;).
Thank you very much, your work is highly appreciated!
I've updated my Ubuntu PPA repository of IPv6-enabled OpenVPN with your patch. It contains the Ubuntu Karmic 2.1~rc19-1ubuntu2 package patched for IPv6 transport, compiled for Karmic and Intrepid. The Intrepid version should work fine on Debian Lenny as well.
You can find those packages on
https://launchpad.net/~berni/+archive/ipv6/+packages . I have not observed any problems in my easy usecase (static Point-to-point tunnel over UDPv6), but no guarantees for anything.
Regards,
Bernhard
any change to megre it into upstream openvpn?
Quoted 21 lines · Bernhard Schmidt
JuanJo Ciarlante<[email protected]...> wrote:
Hello JuanJo,
Quoted 5 lines
I'm(back) working on openvpn/ipv6 endpoint support, aka udp6/tcp6, please refer to README.ipv6[1] and TODO.ipv6[2] for more details.
All snapshots are unittested for correct {udp,tcp}v{4,6} operation under GNU/Linux and win32 (the latter x-compiled under the former ;).
Thank you very much, your work is highly appreciated!
I've updated my Ubuntu PPA repository of IPv6-enabled OpenVPN with your patch. It contains the Ubuntu Karmic 2.1~rc19-1ubuntu2 package patched for IPv6 transport, compiled for Karmic and Intrepid. The Intrepid version should work fine on Debian Lenny as well.
You can find those packages on
https://launchpad.net/~berni/+archive/ipv6/+packages . I have not observed any problems in my easy usecase (static Point-to-point tunnel over UDPv6), but no guarantees for anything.
Signature · 1 line
Levente "Si vis pacem para bellum!"
Hi Farkas,
Quoted 1 line · Farkas Levente
any change to megre it into upstream openvpn?
hummm... one important "thing" I've been voiding to face is mgmt console support (mainly b/c I don't use it), but I'm certainly sure this would be an absolute requirement for getting it in ;o)
For the moment, I added this fact to TODO.ipv6 ... so that doesn't appear that there's no love for that support :)
Cheers,
Quoted 39 lines · Bernhard Schmidt
Quoted 17 lines
JuanJo Ciarlante<[email protected]...> wrote:
Hello JuanJo,
Quoted 5 lines
I'm(back) working on openvpn/ipv6 endpoint support, aka udp6/tcp6, please refer to README.ipv6[1] and TODO.ipv6[2] for more details.
All snapshots are unittested for correct {udp,tcp}v{4,6} operation under GNU/Linux and win32 (the latter x-compiled under the former ;).
Thank you very much, your work is highly appreciated!
I've updated my Ubuntu PPA repository of IPv6-enabled OpenVPN with your patch. It contains the Ubuntu Karmic 2.1~rc19-1ubuntu2 package patched for IPv6 transport, compiled for Karmic and Intrepid. The Intrepid version should work fine on Debian Lenny as well.
Quoted 4 lines
You can find those packages on
https://launchpad.net/~berni/+archive/ipv6/+packages . I have not observed any problems in my easy usecase (static Point-to-point tunnel over UDPv6), but no guarantees for anything.--
Levente "Si vis pacem para bellum!"------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Signature · 1 line
--JuanJo ; echo [email protected]... | sed 's/[SPAM]//g'
Hi Bernhard,
Quoted 11 lines · Bernhard Schmidt
JuanJo Ciarlante <[email protected]...> wrote:
Hello JuanJo,
Quoted 5 lines
I'm(back) working on openvpn/ipv6 endpoint support, aka udp6/tcp6, please refer to README.ipv6[1] and TODO.ipv6[2] for more details.
All snapshots are unittested for correct {udp,tcp}v{4,6} operation under GNU/Linux and win32 (the latter x-compiled under the former ;).
Thank you very much, your work is highly appreciated!
heh ... thanks :)
Quoted 5 lines
I've updated my Ubuntu PPA repository of IPv6-enabled OpenVPN with your patch. It contains the Ubuntu Karmic 2.1~rc19-1ubuntu2 package patched for IPv6 transport, compiled for Karmic and Intrepid. The Intrepid version should work fine on Debian Lenny as well.
wohooo ... thanks a lot!, with you help this effort will be able to reach ++people .
Quoted 3 lines
You can find those packages on
https://launchpad.net/~berni/+archive/ipv6/+packages .
Cool, I added this to README.ipv6.
Quoted 3 lines
I have not
observed any problems in my easy usecase (static Point-to-point tunnel over UDPv6), but no guarantees for anything.
heh... I sieve my changes thru a set of crude but effective unittests for basic protocol xchg and conn establishment for {tcp,udp}x{4,6}; surprisingly nuff, both for ./openvpn and ./openvpn.exe :P
Quoted 4 lines
Regards,
Bernhard
Cheers,
Signature · 1 line
--JuanJo ; echo [email protected]... | sed 's/[SPAM]//g'
Quoted 1 line · On Friday 25 September 2009 23:36:19 JuanJo Ciarlante wrote:
Hi,
Hi JuanJo,
Quoted 2 lines
I'm(back) working on openvpn/ipv6 endpoint support, aka udp6/tcp6, please refer to README.ipv6[1] and TODO.ipv6[2] for more details.
Great news! Thank you very much for your work.
So i needn't adapt your patch in future ;)
Quoted 2 lines
All snapshots are unittested for correct {udp,tcp}v{4,6} operation under GNU/Linux and win32 (the latter x-compiled under the former ;).
I will update my gentoo ebuilds with the current patch in the next days. After this i will publish the URL for the ebuilds.
Regards,
Marcel
Hey Marcel,
Quoted 10 lines · Marcel Pennewiß
Quoted 1 line · On Friday 25 September 2009 23:36:19 JuanJo Ciarlante wrote:
Hi,
Hi JuanJo,
Quoted 2 lines
I'm(back) working on openvpn/ipv6 endpoint support, aka udp6/tcp6, please refer to README.ipv6[1] and TODO.ipv6[2] for more details.
Great news! Thank you very much for your work.
So i needn't adapt your patch in future ;)
=)
Quoted 6 lines
Quoted 3 lines
All snapshots are unittested for correct {udp,tcp}v{4,6} operation under GNU/Linux and win32 (the latter x-compiled under the former ;).
I will update my gentoo ebuilds with the current patch in the next days. After this i will publish the URL for the ebuilds.
Cool, thanks!, plz ping me back as soon as you have it, to add it to the README.
Quoted 4 lines
Regards,
Marcel
Cheers,
Signature · 1 line
--JuanJo ; echo [email protected]... | sed 's/[SPAM]//g'
Quoted 4 lines · On Friday 25 September 2009 23:36:19 JuanJo Ciarlante wrote:
Hi,
I'm(back) working on openvpn/ipv6 endpoint support, aka udp6/tcp6, please refer to README.ipv6[1] and TODO.ipv6[2] for more details.
OpenVPN 2.1-rc19 crashs on Gentoo (Xen DomU, AMD64( using tcp6-server with
Sep 30 19:42:00 larissa openvpn[25441]: Assertion failed at socket.c:1620 Sep 30 19:42:00 larissa openvpn[25441]: Exiting
and segfaulted using "tcp-server"
Sep 30 19:39:09 larissa openvpn[25238]: segfault at 0000000000000002 rip 00002b3486469fd0 rsp 00007fff254e9c98 error 4 Sep 30 19:39:09 larissa openvpn[25238]: MULTI: multi_create_instance called Sep 30 19:39:09 larissa openvpn[25238]: Re-using SSL/TLS context Sep 30 19:39:09 larissa openvpn[25238]: LZO compression initialized Sep 30 19:39:09 larissa openvpn[25238]: Control Channel MTU parms [ L:1576 D:140 EF:40 EB:0 ET:0 EL:0 ] Sep 30 19:39:09 larissa openvpn[25238]: Data Channel MTU parms [ L:1576 D:1450 EF:44 EB:135 ET:32 EL:0 AF:3/1 ] Sep 30 19:39:09 larissa openvpn[25238]: Local Options hash (VER=V4): '3e6d1056' Sep 30 19:39:09 larissa openvpn[25238]: Expected Remote Options hash (VER=V4): '31fdf004' Sep 30 19:39:09 larissa openvpn[25238]: TCP connection established with [AF_INET]141.24.41.188:60913 Sep 30 19:39:09 larissa openvpn[25238]: Socket Buffers: R=[131072->131072]
S=[131072->131072]
Any ideas?
Marcel
Hi Marcel,
Quoted 11 lines · Marcel Pennewiß
Quoted 4 lines · On Friday 25 September 2009 23:36:19 JuanJo Ciarlante wrote:
Hi,
I'm(back) working on openvpn/ipv6 endpoint support, aka udp6/tcp6, please refer to README.ipv6[1] and TODO.ipv6[2] for more details.
OpenVPN 2.1-rc19 crashs on Gentoo (Xen DomU, AMD64( using tcp6-server with
Sep 30 19:42:00 larissa openvpn[25441]: Assertion failed at socket.c:1620 Sep 30 19:42:00 larissa openvpn[25441]: Exiting
Quoted 6 lines
and segfaulted using "tcp-server"
Sep 30 19:39:09 larissa openvpn[25238]: segfault at 0000000000000002 rip
00002b3486469fd0rsp00007fff254e9c98error 4{...snip...}
Could you please copy me the the exact cmdline and context (inetd?) you are using in both cases?, also if there's any extra patch applied, etc.
Thanks a lot,
Quoted 16 lines
Any ideas?
Marcel
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Signature · 1 line
--JuanJo ; echo [email protected]... | sed 's/[SPAM]//g'
Quoted 2 lines · On Wednesday 30 September 2009 20:20:40 JuanJo Ciarlante wrote:
Could you please copy me the the exact cmdline and context (inetd?) you are using in both cases?, also if there's any extra patch applied, etc.
/usr/sbin/openvpn --config /etc/openvpn/tcp.conf --writepid /var/run/openvpn.tcp.pid --daemon --setenv SVCNAME openvpn.tcp --cd /etc/openvpn
/etc/openvpn/tcp.conf:
port 897
proto tcp6-server
dev tap1
server-bridge 192.168.42.253 255.255.255.0 192.168.42.1 192.168.42.200
tls-server
dh /etc/openvpn/files/dh2048.pem
ca /etc/openvpn/files/ca.pem
cert /etc/openvpn/files/cert.pem
key /etc/openvpn/files/key.pem
comp-lzo
client-to-client
client-config-dir /etc/openvpn/clients
persist-tun
persist-key
keepalive 10 120
script-security 2
user nobody
group nogroup
verb 3
patch applied from gentoo ebuild:
socket.c 2008-11-02 01:39:00.406009999 +0100 renamed from socket.c~ 2008-11-02 01:39:00.406009999 +0100 +1 -0
@@ -22,6 +22,7 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define _GNU_SOURCE #include "syshead.h" #include "socket.h"
thx,
Marcel
Quoted 43 lines · Marcel Pennewiß
Quoted 2 lines · On Wednesday 30 September 2009 20:20:40 JuanJo Ciarlante wrote:
Could you please copy me the the exact cmdline and context (inetd?) you are using in both cases?, also if there's any extra patch applied,
etc.
/usr/sbin/openvpn--config/etc/openvpn/tcp.conf--writepid/var/run/openvpn.tcp.pid--daemon --setenv
SVCNAME openvpn.tcp --cd/etc/openvpn
/etc/openvpn/tcp.conf:
port 897
proto tcp6-server
dev tap1
server-bridge 192.168.42.253 255.255.255.0 192.168.42.1 192.168.42.200tls-server
dh/etc/openvpn/files/dh2048.pem
ca/etc/openvpn/files/ca.pem
cert/etc/openvpn/files/cert.pem
key/etc/openvpn/files/key.pem
comp-lzo
client-to-client
client-config-dir/etc/openvpn/clients
persist-tun
persist-key
keepalive 10 120
script-security 2
user nobody
group nogroup
verb 3patch applied from gentoo ebuild:
socket.c 2008-11-02 01:39:00.406009999 +0100 renamed from socket.c~ 2008-11-02 01:39:00.406009999 +0100 +1
-0@@ -22,6 +22,7 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define _GNU_SOURCE #include "syshead.h" #include "socket.h"
Quoted 2 lines
thx,
Cool ... it's crashing for me also (yaY!) , it's something in the multi-client path
that I hadn't handled, will work on it tomorrow.
Thanks a lot for the detailed report and info :)
Cheers,
Signature · 1 line
--JuanJo ; echo [email protected]... | sed 's/[SPAM]//g'
Quoted 44 lines · JuanJo Ciarlante
Quoted 41 lines · Marcel Pennewiß
Quoted 2 lines · On Wednesday 30 September 2009 20:20:40 JuanJo Ciarlante wrote:
Could you please copy me the the exact cmdline and context (inetd?) you are using in both cases?, also if there's any extra patch applied,
etc.
/usr/sbin/openvpn--config/etc/openvpn/tcp.conf--writepid/var/run/openvpn.tcp.pid--daemon --setenv
SVCNAME openvpn.tcp --cd/etc/openvpn
/etc/openvpn/tcp.conf:
port 897
proto tcp6-server
dev tap1
server-bridge 192.168.42.253 255.255.255.0 192.168.42.1 192.168.42.200tls-server
dh/etc/openvpn/files/dh2048.pem
ca/etc/openvpn/files/ca.pem
cert/etc/openvpn/files/cert.pem
key/etc/openvpn/files/key.pem
comp-lzo
client-to-client
client-config-dir/etc/openvpn/clients
persist-tun
persist-key
keepalive 10 120
script-security 2
user nobody
group nogroup
verb 3patch applied from gentoo ebuild:
socket.c 2008-11-02 01:39:00.406009999 +0100 renamed from socket.c~ 2008-11-02 01:39:00.406009999 +0100 +1
-0@@ -22,6 +22,7 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define _GNU_SOURCE #include "syshead.h"
Quoted 8 lines
Quoted 4 lines
socket.c 2008-11-02 01:39:00.406009999 +0100 renamed from socket.c~ 2008-11-02 01:39:00.406009999 +0100 +0
-0#include "socket.h"thx,
Cool ... it's crashing for me also (yaY!) , it's something in the multi-client path
that I hadn't handled, will work on it tomorrow.
Please apply this patch:
From 3afb64b8255fa28e488e793259b2f3de94840b01 Mon Sep 17 00:00:00 2001
From: JuanJo Ciarlante <[email protected]...>
Date: Thu, 1 Oct 2009 00:15:12 +0200
Subject: [PATCH] * fix multi-tcp crash (corrected assertion)
--- mtcp.c | 6 +++++- socket.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-)
mtcp.c +5 -1
@@ -153,7 +153,11 @@ multi_tcp_instance_specific_init (struct multi_context *m, struct multi_instanceASSERT (mi->context.c2.link_socket);ASSERT (mi->context.c2.link_socket->info.lsa);ASSERT (mi->context.c2.link_socket->mode ==LS_MODE_TCP_ACCEPT_FROM ); -ASSERT (mi->context.c2.link_socket->info.lsa->actual.dest.addr.sa.sa_family ==AF_INET ); +ASSERT (mi->context.c2.link_socket->info.lsa->actual.dest.addr.sa.sa_family ==AF_INET +#ifdef USE_PF_INET6 + || mi->context.c2.link_socket->info.lsa->actual.dest.addr.sa.sa_family ==AF_INET6 +#endif + );if (!mroute_extract_openvpn_sockaddr (&mi->real, &mi->context.c2.link_socket->info.lsa->actual.dest, true)) {msg (D_MULTI_ERRORS ,"MULTI TCP: TCP client address is undefined" );
socket.c +5 -1
@@ -1616,7 +1616,11 @@ link_socket_init_phase1 (struct link_socket *sock,if (mode ==LS_MODE_TCP_ACCEPT_FROM ) {ASSERT (accept_from); -ASSERT (sock->info.proto == PROTO_TCPv4_SERVER); +ASSERT (sock->info.proto == PROTO_TCPv4_SERVER +#ifdef USE_PF_INET6 + || sock->info.proto == PROTO_TCPv6_SERVER +#endif + );ASSERT (!sock->inetd); sock->sd = accept_from->sd; }
Signature · 7 lines
1.5.4.3 I tested your config upto full connection, and seems to work. Cheers, -- --JuanJo ; echo [email protected]... | sed 's/[SPAM]//g'
Marcel,
Quoted 48 lines · JuanJo Ciarlante
Quoted 46 lines · JuanJo Ciarlante
Quoted 43 lines · Marcel Pennewiß
Quoted 2 lines · On Wednesday 30 September 2009 20:20:40 JuanJo Ciarlante wrote:
Could you please copy me the the exact cmdline and context (inetd?) you are using in both cases?, also if there's any extra patch applied,
etc.
/usr/sbin/openvpn--config/etc/openvpn/tcp.conf--writepid/var/run/openvpn.tcp.pid--daemon --setenv
SVCNAME openvpn.tcp --cd/etc/openvpn
/etc/openvpn/tcp.conf:
port 897
proto tcp6-server
dev tap1
server-bridge 192.168.42.253 255.255.255.0 192.168.42.1 192.168.42.200tls-server
dh/etc/openvpn/files/dh2048.pem
ca/etc/openvpn/files/ca.pem
cert/etc/openvpn/files/cert.pem
key/etc/openvpn/files/key.pem
comp-lzo
client-to-client
client-config-dir/etc/openvpn/clients
persist-tun
persist-key
keepalive 10 120
script-security 2
user nobody
group nogroup
verb 3patch applied from gentoo ebuild:
socket.c 2008-11-02 01:39:00.406009999 +0100 renamed from socket.c~ 2008-11-02 01:39:00.406009999 +0100 +1
-0@@ -22,6 +22,7 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define _GNU_SOURCE #include "syshead.h" #include "socket.h"
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
thx,
Cool ... it's crashing for me also (yaY!) , it's something in the multi-client path
that I hadn't handled, will work on it tomorrow.Please apply this patch:
also available as full patch at
http://cloud.github.com/downloads/jjo/openvpn-ipv6/openvpn-2.1_rc19-2.1_rc19c-ipv6-0.4.7.patch.gz
Quoted 48 lines
Quoted 2 lines
From
3afb64b8255fa28e488e793259b2f3de94840b01Mon Sep 17 00:00:00 2001From: JuanJo Ciarlante <[email protected]...>
Date: Thu, 1 Oct 2009 00:15:12 +0200
Subject: [PATCH] * fix multi-tcp crash (corrected assertion)---
mtcp.c | 6 +++++-
socket.c | 6 +++++-2 files changed, 10 insertions(+), 2 deletions(-)mtcp.c +5
-1@@ -153,7 +153,11 @@ multi_tcp_instance_specific_init (struct multi_context *m, struct multi_instance ASSERT (mi->context.c2.link_socket); ASSERT (mi->context.c2.link_socket->info.lsa); ASSERT (mi->context.c2.link_socket->mode == LS_MODE_TCP_ACCEPT_FROM); - ASSERT (mi->context.c2.link_socket->info.lsa->actual.dest.addr.sa.sa_family == AF_INET); + ASSERT (mi->context.c2.link_socket->info.lsa->actual.dest.addr.sa.sa_family == AF_INET +#ifdef USE_PF_INET6 + || mi->context.c2.link_socket->info.lsa->actual.dest.addr.sa.sa_family == AF_INET6 +#endif + ); if (!mroute_extract_openvpn_sockaddr (&mi->real, &mi->context.c2.link_socket->info.lsa->actual.dest, true)) { msg (D_MULTI_ERRORS, "MULTI TCP: TCP client address is undefined");socket.c +5
-2@@ -1616,7 +1616,11 @@ link_socket_init_phase1 (struct link_socket *sock, if (mode == LS_MODE_TCP_ACCEPT_FROM) { ASSERT (accept_from); - ASSERT (sock->info.proto == PROTO_TCPv4_SERVER); + ASSERT (sock->info.proto == PROTO_TCPv4_SERVER +#ifdef USE_PF_INET6 + || sock->info.proto == PROTO_TCPv6_SERVER +#endif + ); ASSERT (!sock->inetd); sock->sd = accept_from->sd; } --1.5.4.3
Quoted 3 lines
I tested your config upto full connection, and seems to work.
Cheers,
--
--JuanJo ; echo [email protected]... | sed 's/[SPAM]//g'
Quoted 6 lines · On Thursday 01 October 2009 00:26:15 JuanJo Ciarlante wrote:
Marcel,
Quoted 1 line
Please apply this patch:
also available as full patch at
http://cloud.github.com/downloads/jjo/openvpn-ipv6/openvpn-2.1_rc19-2.1_r
c19c-ipv6-0.4.7.patch.gz
compiling failed with:
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -march=athlon64 -O2 -pipe -msse3 -D_REENTRANT -pthread -MT
cryptoapi.o -MD -MP -MF .deps/cryptoapi.Tpo -c -o cryptoapi.o cryptoapi.c mv -f .deps/cryptoapi.Tpo .deps/cryptoapi.Po
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -msse3 -D_REENTRANT -pthread -Wl,-O1 -o openvpn base64.o buffer.o crypto.o dhcp.o error.o event.o fdmisc.o forward.o fragment.o gremlin.o helper.o lladdr.o init.o interval.o list.o lzo.o manage.o mbuf.o misc.o mroute.o mss.o mtcp.o mtu.o mudp.o multi.o ntlm.o occ.o pkcs11.o openvpn.o options.o otime.o packet_id.o perf.o pf.o ping.o plugin.o pool.o proto.o proxy.o ieproxy.o ps.o push.o reliable.o route.o schedule.o session_id.o shaper.o sig.o socket.o socks.o ssl.o status.o thread.o tun.o win32.o cryptoapi.o -lssl -lcrypto -llzo2 -ldl
multi.o: In function `management_client_auth':
multi.c:(.text+0x22ee): undefined reference to `tls_authenticate_key'
collect2: ld returned 1 exit status
make[1]: *** [openvpn] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/openvpn-2.1_rc19/work/openvpn-2.1_rc19'
make: *** [install-recursive] Error 1
using:
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-pkcs11 --disable-password-save --enable-ssl --enable-crypto --enable-pthread --disable-iproute2 and gcc version 4.3.2 (Gentoo 4.3.2-r3 p1.6, pie-10.1.5)
Regards,
Marcel
Quoted 23 lines · Marcel Pennewiß
Quoted 6 lines · On Thursday 01 October 2009 00:26:15 JuanJo Ciarlante wrote:
Marcel,
Quoted 1 line
Please apply this patch:
also available as full patch at
http://cloud.github.com/downloads/jjo/openvpn-ipv6/openvpn-2.1_rc19-2.1_r
c19c-ipv6-0.4.7.patch.gzcompiling failed with:
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -march=athlon64 -O2 -pipe -msse3 -D_REENTRANT -pthread -MT cryptoapi.o -MD -MP -MF .deps/cryptoapi.Tpo -c -o cryptoapi.o
cryptoapi.c
mv -f .deps/cryptoapi.Tpo .deps/cryptoapi.Pox86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -msse3 -D_REENTRANT -pthread -Wl,-O1 -o openvpn base64.o buffer.o crypto.o dhcp.o error.o event.o fdmisc.o forward.o fragment.o gremlin.o helper.o lladdr.o init.o interval.o list.o lzo.o manage.o mbuf.o misc.o mroute.o mss.o mtcp.o mtu.o mudp.o multi.o ntlm.o occ.o pkcs11.o openvpn.o options.o otime.o packet_id.o perf.o pf.o ping.o plugin.o pool.o proto.o proxy.o ieproxy.o ps.o push.o reliable.o route.o schedule.o session_id.o shaper.o sig.o socket.o socks.o ssl.o status.o thread.o tun.o win32.o cryptoapi.o -lssl -lcrypto -llzo2 -ldl
Quoted 3 lines
multi.o: In function `management_client_auth':
multi.c:(.text+0x22ee): undefined reference to `tls_authenticate_key'
collect2: ld returned 1 exit status
Weird, cos I didn't touch anything related to crypto (?), anyway I'll test the build from patch in x86{,_64} to see if I can get that.
Cheers,
Quoted 26 lines
make[1]: *** [openvpn] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/openvpn-2.1_rc19/work/openvpn-2.1_rc19'
make: *** [install-recursive] Error 1using:
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-pkcs11 --disable-password-save --enable-ssl --enable-crypto --enable-pthread --disable-iproute2 and gcc version 4.3.2 (Gentoo 4.3.2-r3 p1.6, pie-10.1.5)Regards,
Marcel
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Signature · 1 line
--JuanJo ; echo [email protected]... | sed 's/[SPAM]//g'
Quoted 25 lines · JuanJo Ciarlante
Quoted 23 lines · Marcel Pennewiß
Quoted 6 lines · On Thursday 01 October 2009 00:26:15 JuanJo Ciarlante wrote:
Marcel,
Quoted 1 line
Please apply this patch:
also available as full patch at
http://cloud.github.com/downloads/jjo/openvpn-ipv6/openvpn-2.1_rc19-2.1_r
c19c-ipv6-0.4.7.patch.gzcompiling failed with:
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -march=athlon64 -O2 -pipe -msse3 -D_REENTRANT -pthread -MT cryptoapi.o -MD -MP -MF .deps/cryptoapi.Tpo -c -o cryptoapi.o
cryptoapi.c
mv -f .deps/cryptoapi.Tpo .deps/cryptoapi.Pox86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -msse3 -D_REENTRANT -pthread -Wl,-O1 -o openvpn base64.o buffer.o crypto.o dhcp.o error.o event.o fdmisc.o forward.o fragment.o gremlin.o helper.o lladdr.o init.o interval.o list.o lzo.o manage.o mbuf.o misc.o mroute.o mss.o mtcp.o mtu.o mudp.o multi.o ntlm.o occ.o pkcs11.o openvpn.o options.o otime.o packet_id.o perf.o pf.o ping.o plugin.o pool.o proto.o proxy.o ieproxy.o ps.o push.o reliable.o route.o schedule.o session_id.o shaper.o sig.o socket.o socks.o ssl.o status.o thread.o tun.o win32.o cryptoapi.o -lssl -lcrypto -llzo2 -ldl
Quoted 6 lines
Quoted 3 lines
multi.o: In function `management_client_auth':
multi.c:(.text+0x22ee): undefined reference to `tls_authenticate_key'
collect2: ld returned 1 exit statusWeird, cos I didn't touch anything related to crypto (?), anyway I'll test the build from patch in x86{,_64} to see if I can get that.
Compiled from
http://cloud.github.com/downloads/jjo/openvpn-ipv6/openvpn-2.1_rc19c-ipv6-0.4.7.tar.gz
, it went find for both, as the symbol(s) are ok at the objects:
$ nm -p multi.o ssl.o | egrep 'o:|tls_auth'
multi.o:
U tls_authenticate_key
U tls_authentication_status
ssl.o:
0000000000000080 T tls_authenticate_key
0000000000000ba0 T tls_auth_standalone_init
0000000000000d80 T tls_auth_standalone_finalize
0000000000000ff0 T tls_authentication_status, ie: tls_authenticate_key symbol present as code ("T "ext) in ssl.o , could be there something fishy/unclean in your building env?
Quoted 35 lines
Cheers,
Quoted 15 lines
make[1]: *** [openvpn] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/openvpn-2.1_rc19/work/openvpn-2.1_rc19'
make: *** [install-recursive] Error 1using:
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-pkcs11 --disable-password-save --enable-ssl --enable-crypto --enable-pthread --disable-iproute2 and gcc version 4.3.2 (Gentoo 4.3.2-r3 p1.6, pie-10.1.5)Regards,
Marcel
Quoted 11 lines
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel--
--JuanJo ; echo [email protected]... | sed 's/[SPAM]//g'
Signature · 1 line
--JuanJo ; echo [email protected]... | sed 's/[SPAM]//g'
Quoted 15 lines · On Thursday 01 October 2009 09:22:31 JuanJo Ciarlante wrote:
Compiled from
http://cloud.github.com/downloads/jjo/openvpn-ipv6/openvpn-2.1_rc19c-ipv6-0
.4.7.tar.gz , it went find for both, as the symbol(s) are ok at the objects:$ nm -p multi.o ssl.o | egrep 'o:|tls_auth' multi.o: U tls_authenticate_key U tls_authentication_status ssl.o: 0000000000000080 T tls_authenticate_key 0000000000000ba0 T tls_auth_standalone_init 0000000000000d80 T tls_auth_standalone_finalize 0000000000000ff0 T tls_authentication_status
Quoted 2 lines
, ie:
tls_authenticate_keysymbol present as code ("T "ext) in ssl.o , could be there something fishy/unclean in your building env?
i don't know but build log seems not to show any problems. after the build error my multi.o and ssl.o are are different from yours:
larissa openvpn-2.1_rc19 # nm -p multi.o ssl.o | egrep 'o:|tls_auth' multi.o:
U tls_authenticate_key
U tls_authentication_status
ssl.o:
0000000000000080 T tls_authentication_status 0000000000000be0 T tls_auth_standalone_init 0000000000000da0 T tls_auth_standalone_finalize
the problem only exists when i add your patch. without your patch everything runs fine. i'm using openvpn-source from
http://ftp.tu-ilmenau.de/mirror/gentoo/distfiles/openvpn-2.1_rc19.tar.gz
which is the official source from gentoo-portage and apply your patch.
i'll try your sources asap.
Regards,
Marcel
Hi Marcel,
Quoted 24 lines · Marcel Pennewiß
Quoted 3 lines · On Thursday 01 October 2009 09:22:31 JuanJo Ciarlante wrote:
Compiled from
http://cloud.github.com/downloads/jjo/openvpn-ipv6/openvpn-2.1_rc19c-ipv6-0
Quoted 1 line
.4.7.tar.gz , it went find for both, as the symbol(s) are ok at the
objects:
Quoted 11 lines
$ nm -p multi.o ssl.o | egrep 'o:|tls_auth' multi.o: U tls_authenticate_key U tls_authentication_status ssl.o: 0000000000000080 T tls_authenticate_key 0000000000000ba0 T tls_auth_standalone_init 0000000000000d80 T tls_auth_standalone_finalize 0000000000000ff0 T tls_authentication_statusQuoted 2 lines
, ie:
tls_authenticate_keysymbol present as code ("T "ext) in ssl.o , could be there something fishy/unclean in your building env?i don't know but build log seems not to show any problems. after the build error my multi.o and ssl.o are are different from yours:
Quoted 9 lines
larissa openvpn-2.1_rc19 # nm -p multi.o ssl.o | egrep 'o:|tls_auth' multi.o:
Utls_authenticate_key
Utls_authentication_status
ssl.o:
0000000000000080 Ttls_authentication_status0000000000000be0Ttls_auth_standalone_init0000000000000da0Ttls_auth_standalone_finalize
This is even more weird, cool ...
Quoted 8 lines
the problem only exists when i add your patch. without your patch everything
runs fine. i'm using openvpn-source from
http://ftp.tu-ilmenau.de/mirror/gentoo/distfiles/openvpn-2.1_rc19.tar.gz
which is the official source from gentoo-portage and apply your patch.i'll try your sources asap.
They must^Wshould output the very same source, as the patch is created from a "diff -ur ..." between stock and my src tree.
Could you please show a diff between config.h from stock and patched build?
Cheers,
Quoted 17 lines
Regards,
Marcel------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Signature · 1 line
--JuanJo ; echo [email protected]... | sed 's/[SPAM]//g'
Quoted 2 lines · On Thursday 01 October 2009 12:14:14 JuanJo Ciarlante wrote:
Could you please show a diff between
config.hfrom stock and patched build?
the problem seems to be caused by
./configure ... --disable-iproute2.
if i enable iproute2:
./configure ... --enable-iproute2
the build of openvpn works.
But if the first client connects the openvpn server generate a segfault (with tcp-server and tcp6-server as option).
The last lines via strace - maybe they could help you:
[ 2b82cc06da13] epoll_wait(6, {{EPOLLIN, {u32=2, u64=2}}}, 1028, 10000) = 1
[ 2b82cbd8e840]
read(5, "\377\377\377\377\377\377\0\377Gs\311\210\10\6\0\1\10\0\6\4\0\1\0\377Gs\311\210\300\250*s\0"..., 1532) = 42
[ 2b82cc06da13] epoll_wait(6, {{EPOLLIN, {u32=2, u64=2}}}, 1028, 10000) = 1
[ 2b82cbd8e840]
read(5, "\377\377\377\377\377\377\0\377Gs\311\210\10\6\0\1\10\0\6\4\0\1\0\377Gs\311\210\300\250*s\0"..., 1532) = 42
[ 2b82cc06da13] epoll_wait(6, {{EPOLLIN, {u32=2, u64=2}}}, 1028, 10000) = 1
[ 2b82cbd8e840]
read(5, "\377\377\377\377\377\377\0\377Gs\311\210\10\6\0\1\10\0\6\4\0\1\0\377Gs\311\210\300\250*s\0"..., 1532) = 42
[ 2b82cc06da13] epoll_wait(6, {{EPOLLIN, {u32=1, u64=1}}}, 1028, 10000) = 1
[ 2b82cc06e4b5] sendto(3, "<29>Oct 1 20:24:45 openvpn[15698"..., 72,MSG_NOSIGNAL, NULL, 0) = 72
[ 2b82cc06e4b5] sendto(3, "<29>Oct 1 20:24:45 openvpn[15698"..., 61,MSG_NOSIGNAL, NULL, 0) = 61
[ 2b82cc06a2ea] mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b82cb190000
[ 2b82cc06e4b5] sendto(3, "<29>Oct 1 20:24:45 openvpn[15698"..., 64,MSG_NOSIGNAL, NULL, 0) = 64
[ 2b82cc06602a] brk(0x6dd000) = 0x6dd000
[ 2b82cc06e4b5] sendto(3, "<29>Oct 1 20:24:45 openvpn[15698"..., 100,MSG_NOSIGNAL, NULL, 0) = 100
[ 2b82cc06e4b5] sendto(3, "<29>Oct 1 20:24:45 openvpn[15698"..., 108,MSG_NOSIGNAL, NULL, 0) = 108
[ 2b82cc06e4b5] sendto(3, "<29>Oct 1 20:24:45 openvpn[15698"..., 76,MSG_NOSIGNAL, NULL, 0) = 76
[ 2b82cc06e4b5] sendto(3, "<29>Oct 1 20:24:45 openvpn[15698"..., 86,MSG_NOSIGNAL, NULL, 0) = 86
[ 2b82cbd8eac0] accept(4, {sa_family=AF_INET6, sin6_port=htons(55430),inet_pton(AF_INET6, "::ffff:141.xx.xx.xxx", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [30146066212978716]) = 7
[ 2b82cc06e4b5] sendto(3, "<29>Oct 1 20:24:45 openvpn[15698"..., 105,MSG_NOSIGNAL, NULL, 0) = 105
[ 2b82cc06e20a] getsockopt(7, SOL_SOCKET, SO_SNDBUF, [17180000256], [4]) =
0
[ 2b82cc06e20a] getsockopt(7, SOL_SOCKET, SO_RCVBUF, [30146066213109760],
[4]) = 0
[ 2b82cc06e68a] setsockopt(7, SOL_SOCKET, SO_SNDBUF, [65536], 4) = 0 [ 2b82cc06e68a] setsockopt(7, SOL_SOCKET, SO_RCVBUF, [65536], 4) = 0 [ 2b82cc06e20a] getsockopt(7, SOL_SOCKET, SO_SNDBUF, [17180000256], [4]) =
0
[ 2b82cc06e20a] getsockopt(7, SOL_SOCKET, SO_RCVBUF, [30146066213109760],
[4]) = 0
[ 2b82cc06e4b5] sendto(3, "<29>Oct 1 20:24:45 openvpn[15698"..., 90,MSG_NOSIGNAL, NULL, 0) = 90
[ 2b82cbd8ea1b] fcntl(7, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 [ 2b82cbd8ea1b] fcntl(7, F_SETFD, FD_CLOEXEC) = 0 [ 2b82cc06e68a] setsockopt(7, SOL_IP, IP_RECVERR, [1], 4) = 0 [ 2b82cc017fd0] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 15698 detached
Oct 1 20:09:45 larissa openvpn[15446]: segfault at 0000000000000002 rip
00002b07e075bfd0 rsp 00007fffcb1f79b8 error 4
Marcel
Quoted 7 lines · Marcel Pennewiß
Quoted 2 lines · On Thursday 01 October 2009 12:14:14 JuanJo Ciarlante wrote:
Could you please show a diff between
config.hfrom stock and patched build?the problem seems to be caused by
./configure ... --disable-iproute2.
this worked ok for me (?)
Quoted 8 lines
if i enable iproute2:
./configure ... --enable-iproute2
the build of openvpn works.But if the first client connects the openvpn server generate a segfault (with tcp-server and tcp6-server as option).
The last lines via strace - maybe they could help you:
Thanks for the detailed report, I'll try to reproduce this and come back to you.
Cheers,
Quoted 61 lines
[ 2b82cc06da13]
epoll_wait(6, {{EPOLLIN, {u32=2, u64=2}}}, 1028, 10000)= 1
[ 2b82cbd8e840]
read(5, "\377\377\377\377\377\377\0\377Gs\311\210\10\6\0\1\10\0\6\4\0\1\0\377Gs\311\210\300\250*s\0"..., 1532) = 42
[ 2b82cc06da13]epoll_wait(6, {{EPOLLIN, {u32=2, u64=2}}}, 1028, 10000)= 1
[ 2b82cbd8e840]
read(5, "\377\377\377\377\377\377\0\377Gs\311\210\10\6\0\1\10\0\6\4\0\1\0\377Gs\311\210\300\250*s\0"..., 1532) = 42
[ 2b82cc06da13]epoll_wait(6, {{EPOLLIN, {u32=2, u64=2}}}, 1028, 10000)= 1
[ 2b82cbd8e840]
read(5, "\377\377\377\377\377\377\0\377Gs\311\210\10\6\0\1\10\0\6\4\0\1\0\377Gs\311\210\300\250*s\0"..., 1532) = 42
[ 2b82cc06da13]epoll_wait(6, {{EPOLLIN, {u32=1, u64=1}}}, 1028, 10000)= 1
[ 2b82cc06e4b5] sendto(3, "<29>Oct 1 20:24:45 openvpn[15698"..., 72,MSG_NOSIGNAL, NULL, 0) = 72
[ 2b82cc06e4b5] sendto(3, "<29>Oct 1 20:24:45 openvpn[15698"..., 61,MSG_NOSIGNAL, NULL, 0) = 61
[ 2b82cc06a2ea] mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =0x2b82cb190000
[ 2b82cc06e4b5] sendto(3, "<29>Oct 1 20:24:45 openvpn[15698"..., 64,MSG_NOSIGNAL, NULL, 0) = 64
[ 2b82cc06602a] brk(0x6dd000) =0x6dd000
[ 2b82cc06e4b5] sendto(3, "<29>Oct 1 20:24:45 openvpn[15698"..., 100,MSG_NOSIGNAL, NULL, 0) = 100
[ 2b82cc06e4b5] sendto(3, "<29>Oct 1 20:24:45 openvpn[15698"..., 108,MSG_NOSIGNAL, NULL, 0) = 108
[ 2b82cc06e4b5] sendto(3, "<29>Oct 1 20:24:45 openvpn[15698"..., 76,MSG_NOSIGNAL, NULL, 0) = 76
[ 2b82cc06e4b5] sendto(3, "<29>Oct 1 20:24:45 openvpn[15698"..., 86,MSG_NOSIGNAL, NULL, 0) = 86
[ 2b82cbd8eac0] accept(4, {sa_family=AF_INET6, sin6_port=htons(55430),inet_pton(AF_INET6, "::ffff:141.xx.xx.xxx", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [30146066212978716]) = 7
[ 2b82cc06e4b5] sendto(3, "<29>Oct 1 20:24:45 openvpn[15698"..., 105,MSG_NOSIGNAL, NULL, 0) = 105
[ 2b82cc06e20a]getsockopt(7, SOL_SOCKET, SO_SNDBUF, [17180000256], [4])=
0
[ 2b82cc06e20a] getsockopt(7,SOL_SOCKET,SO_RCVBUF, [30146066213109760],
[4]) = 0
[ 2b82cc06e68a]setsockopt(7, SOL_SOCKET, SO_SNDBUF, [65536], 4)= 0
[ 2b82cc06e68a]setsockopt(7, SOL_SOCKET, SO_RCVBUF, [65536], 4)= 0
[ 2b82cc06e20a]getsockopt(7, SOL_SOCKET, SO_SNDBUF, [17180000256], [4])=
0
[ 2b82cc06e20a] getsockopt(7,SOL_SOCKET,SO_RCVBUF, [30146066213109760],
[4]) = 0
[ 2b82cc06e4b5] sendto(3, "<29>Oct 1 20:24:45 openvpn[15698"..., 90,MSG_NOSIGNAL, NULL, 0) = 90
[ 2b82cbd8ea1b]fcntl(7, F_SETFL, O_RDONLY|O_NONBLOCK)= 0
[ 2b82cbd8ea1b]fcntl(7, F_SETFD, FD_CLOEXEC)= 0
[ 2b82cc06e68a]setsockopt(7, SOL_IP, IP_RECVERR, [1], 4)= 0
[ 2b82cc017fd0] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 15698 detachedOct 1 20:09:45 larissa openvpn[15446]: segfault at 0000000000000002 rip
00002b07e075bfd0rsp00007fffcb1f79b8error 4Marcel
Quoted 10 lines
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
--
--JuanJo ; echo [email protected]... | sed 's/[SPAM]//g'
Quoted 7 lines · On Thursday 01 October 2009 08:14:38 Marcel Pennewiß wrote:
Quoted 4 lines
Quoted 1 line
Please apply this patch:
also available as full patch at
http://cloud.github.com/downloads/jjo/openvpn-ipv6/openvpn-2.1_rc19-2.1
_r c19c-ipv6-0.4.7.patch.gzcompiling failed with:
Quoted 8 lines
multi.o: In function `management_client_auth':
multi.c:(.text+0x22ee): undefined reference to `tls_authenticate_key'
collect2: ld returned 1 exit statusmake[1]: *** [openvpn] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/openvpn-2.1_rc19/work/openvpn-2.1_rc19'
make: *** [install-recursive] Error 1
Problem seams to be "make -j3" on singlecore-system. "make -j2" works perfectly.
regards,
Marcel
Quoted 8 lines · On Wednesday 30 September 2009 19:41:01 Marcel Pennewiß wrote:
Quoted 4 lines · On Friday 25 September 2009 23:36:19 JuanJo Ciarlante wrote:
Hi,
I'm(back) working on openvpn/ipv6 endpoint support, aka udp6/tcp6, please refer to README.ipv6[1] and TODO.ipv6[2] for more details.
OpenVPN 2.1-rc19 crashs on Gentoo (Xen DomU, AMD64( using tcp6-server with and segfaulted using "tcp-server"
Both problems fixed in 0.4.8-patch. big thx to JuanJo.
Marcel